#include "function.h"
#include "plus.h"

Plus::Plus(Function * a, Function * b)
	: a_(new Function(a)), b_(new Function(b)) 
{}

Plus::~Plus(){
	delete a_;
	delete b_;
}

double Plus::value (double x)	{
	return a_ -> value(x) + b_ -> value(x);
}

